Skip to content

Content-Type not right #16

@aqr199

Description

@aqr199
  1. Content-Type not right

src/Oracle/Oci/ObjectStorage/ObjectStorageClient.php

line 2673

$__headers = ['Content-Type' => 'application/json', 'User-Agent' => UserAgent::getUserAgent()];

upload image Content-Type always application/json

change $__headers

$__headers = ['User-Agent' => UserAgent::getUserAgent()];

now upload image Content-Type: image/jpeg

How to ensure the Content-Type is correct?
Modify the source code or have other settings

  1. How does it work?

src/Oracle/Oci/ObjectStorage/ObjectStorageClient.php
line 2692

if ($contentType != null) {
HttpUtils::addToArray($__headers, "contentType", HttpUtils::attemptEncodeParam($contentType));
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions