File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -511,9 +511,10 @@ requests and the specific headers for each request:
511511
512512 # config/packages/framework.yaml
513513 framework :
514- http_client :
515- headers :
516- ' User-Agent ' : ' My Fancy App'
514+ default_options :
515+ http_client :
516+ headers :
517+ ' User-Agent ' : ' My Fancy App'
517518
518519 .. code-block :: xml
519520
@@ -528,7 +529,9 @@ requests and the specific headers for each request:
528529
529530 <framework : config >
530531 <framework : http-client >
531- <framework : header name =" User-Agent" >My Fancy App</framework : header >
532+ <framework : default-options >
533+ <framework : header name =" User-Agent" >My Fancy App</framework : header >
534+ </framework : default-options >
532535 </framework-http-client >
533536 </framework : config >
534537 </container >
@@ -538,8 +541,10 @@ requests and the specific headers for each request:
538541 // config/packages/framework.php
539542 $container->loadFromExtension('framework', [
540543 'http_client' => [
541- 'headers' => [
542- 'User-Agent' => 'My Fancy App',
544+ 'default_options' => [
545+ 'headers' => [
546+ 'User-Agent' => 'My Fancy App',
547+ ],
543548 ],
544549 ],
545550 ]);
You can’t perform that action at this time.
0 commit comments