@@ -110,18 +110,18 @@ public function request(string $method, string $url, array $options = []): Respo
110
110
];
111
111
112
112
if ('GET ' === $ method && !$ options ['body ' ] && $ expectedHeaders === $ pushedHeaders ) {
113
- $ this ->logger && $ this ->logger ->info (sprintf ('Connecting request to pushed response: %s %s ' , $ method , $ url ));
113
+ $ this ->logger && $ this ->logger ->debug (sprintf ('Connecting request to pushed response: " %s %s" ' , $ method , $ url ));
114
114
115
115
// Reinitialize the pushed response with request's options
116
116
$ pushedResponse ->__construct ($ this ->multi , $ url , $ options , $ this ->logger );
117
117
118
118
return $ pushedResponse ;
119
119
}
120
120
121
- $ this ->logger && $ this ->logger ->info (sprintf ('Rejecting pushed response for "%s": authorization headers don \'t match the request ' , $ url ));
121
+ $ this ->logger && $ this ->logger ->debug (sprintf ('Rejecting pushed response for "%s": authorization headers don \'t match the request ' , $ url ));
122
122
}
123
123
124
- $ this ->logger && $ this ->logger ->info (sprintf ('Request: %s %s ' , $ method , $ url ));
124
+ $ this ->logger && $ this ->logger ->info (sprintf ('Request: " %s %s" ' , $ method , $ url ));
125
125
126
126
$ curlopts = [
127
127
CURLOPT_URL => $ url ,
@@ -307,15 +307,15 @@ private static function handlePush($parent, $pushed, array $requestHeaders, \std
307
307
}
308
308
309
309
if (!isset ($ headers [':method ' ]) || !isset ($ headers [':scheme ' ]) || !isset ($ headers [':authority ' ]) || !isset ($ headers [':path ' ]) || 'GET ' !== $ headers [':method ' ] || isset ($ headers ['range ' ])) {
310
- $ logger && $ logger ->info (sprintf ('Rejecting pushed response from "%s": pushed headers are invalid ' , $ origin ));
310
+ $ logger && $ logger ->debug (sprintf ('Rejecting pushed response from "%s": pushed headers are invalid ' , $ origin ));
311
311
312
312
return CURL_PUSH_DENY ;
313
313
}
314
314
315
315
$ url = $ headers [':scheme ' ].':// ' .$ headers [':authority ' ];
316
316
317
317
if ($ maxPendingPushes <= \count ($ multi ->pushedResponses )) {
318
- $ logger && $ logger ->info (sprintf ('Rejecting pushed response from "%s" for "%s": the queue is full ' , $ origin , $ url ));
318
+ $ logger && $ logger ->debug (sprintf ('Rejecting pushed response from "%s" for "%s": the queue is full ' , $ origin , $ url ));
319
319
320
320
return CURL_PUSH_DENY ;
321
321
}
@@ -324,13 +324,13 @@ private static function handlePush($parent, $pushed, array $requestHeaders, \std
324
324
// but this is a MUST in the HTTP/2 RFC; let's restrict pushes to the original host,
325
325
// ignoring domains mentioned as alt-name in the certificate for now (same as curl).
326
326
if (0 !== strpos ($ origin , $ url .'/ ' )) {
327
- $ logger && $ logger ->info (sprintf ('Rejecting pushed response from "%s": server is not authoritative for "%s" ' , $ origin , $ url ));
327
+ $ logger && $ logger ->debug (sprintf ('Rejecting pushed response from "%s": server is not authoritative for "%s" ' , $ origin , $ url ));
328
328
329
329
return CURL_PUSH_DENY ;
330
330
}
331
331
332
332
$ url .= $ headers [':path ' ];
333
- $ logger && $ logger ->info (sprintf ('Queueing pushed response: %s ' , $ url ));
333
+ $ logger && $ logger ->debug (sprintf ('Queueing pushed response: "%s" ' , $ url ));
334
334
335
335
$ multi ->pushedResponses [$ url ] = [
336
336
new CurlResponse ($ multi , $ pushed ),
0 commit comments