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

Fix lowercased HTTP headers from HTTP/2#33

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
glensc wants to merge2 commits intozencoder:masterfromglensc:http/2
Closed
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletionServices/Zencoder.php
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -231,9 +231,16 @@ private function _processResponse($response)
if ( $status == 204 || (($status == 200 || $status == 201) && trim($body) == "")) {
return TRUE;
}

// http/1.0 and http/1.1
if (empty($headers['Content-Type'])) {
throw new Services_Zencoder_Exception('Response header is missing Content-Type', $body);
// http/2
if (empty($headers['content-type'])) {
throw new Services_Zencoder_Exception('Response header is missing Content-Type', $body);
}
$headers['Content-Type'] = $headers['content-type'];
}

switch ($headers['Content-Type']) {
case 'application/json':
case 'application/json; charset=utf-8':
Expand Down
4 changes: 2 additions & 2 deletionscomposer.json
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
{
"name": "zencoder/zencoder-php",
"homepage": "http://github.com/zencoder/zencoder-php",
"homepage": "https://github.com/zencoder/zencoder-php",
"description":"Zencoder integration library for PHP",
"keywords":["zencoder", "encoding", "encoder", "cloud"],
"type":"library",
Expand All@@ -16,7 +16,7 @@
"authors":[
{
"name":"Zencoder",
"homepage":"http://zencoder.com"
"homepage":"https://zencoder.com"
}
]
}

[8]ページ先頭

©2009-2025 Movatter.jp