Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Exception due to Zencoder response headers being lower-case now #29

Closed
@OlafZwe

Description

@OlafZwe

This most recent zencoder-php SDK throws the following exception as a result of any API requests:
Response header is missing Content-Type

The reason appears to be that the SDK checks for the following response header:Content-Type. A recent change to Zencoder appears to have resulted in all response headers being returned in lower case. So the SDK is not finding the newcontent-type lower case header and throwing the above exception.

A quick and dirty fix we applied was to use the following code in theServices/Zencoder.php_processResponse($response) function (line 234):

if (empty($headers['Content-Type'])) {if (empty($headers['content-type'])) {thrownewServices_Zencoder_Exception('Response header is missing Content-Type',$body);    }else {$headers['Content-Type'] =$headers['content-type'];    }}

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


      [8]ページ先頭

      ©2009-2025 Movatter.jp