diff options
| author | Lars Magne Ingebrigtsen | 2016-04-24 14:55:15 +0200 |
|---|---|---|
| committer | Lars Magne Ingebrigtsen | 2016-04-24 14:55:15 +0200 |
| commit | b876ee8971a8a040e14251f9733e4209ef7ad637 (patch) | |
| tree | 90be9b9946d8aabb0e8d900132df17a5655b1fbc | |
| parent | 234ef3b432b7dff6629a12be5dd03a163b8e8619 (diff) | |
| download | emacs-b876ee8971a8a040e14251f9733e4209ef7ad637.tar.gz emacs-b876ee8971a8a040e14251f9733e4209ef7ad637.zip | |
Document the nil/default values of url-user-agent
* doc/misc/url.texi (Customization): Document the nil/default
values of url-user-agent.
| -rw-r--r-- | doc/misc/url.texi | 14 | ||||
| -rw-r--r-- | etc/NEWS | 2 |
2 files changed, 11 insertions, 5 deletions
diff --git a/doc/misc/url.texi b/doc/misc/url.texi index 14a4c96cc47..0a96a5428b1 100644 --- a/doc/misc/url.texi +++ b/doc/misc/url.texi | |||
| @@ -1337,10 +1337,16 @@ Connect directly. | |||
| 1337 | @end defopt | 1337 | @end defopt |
| 1338 | 1338 | ||
| 1339 | @defopt url-user-agent | 1339 | @defopt url-user-agent |
| 1340 | The User Agent string used for sending HTTP/HTTPS requests. The value | 1340 | The User Agent string used for sending @acronym{HTTP}/@acronym{HTTPS} |
| 1341 | should be a string or a function of no arguments that returns a | 1341 | requests. The value should be @code{nil}, which means that no |
| 1342 | string. The default value is @w{@samp{User-Agent: @var{package-name} | 1342 | @samo{User-Agent} header is generated, @code{default}, which means |
| 1343 | URL/Emacs}}, where @var{package-name} is the value of | 1343 | that a string is generated based on the setting of |
| 1344 | @code{url-privacy-leve}, a string or a function of no arguments that | ||
| 1345 | returns a string. | ||
| 1346 | |||
| 1347 | The default is @code{default}, which means that the | ||
| 1348 | @w{@samp{User-Agent: @var{package-name} URL/Emacs}} string will be | ||
| 1349 | generated, where @var{package-name} is the value of | ||
| 1344 | @code{url-package-name} and its version, if they are non-@code{nil}. | 1350 | @code{url-package-name} and its version, if they are non-@code{nil}. |
| 1345 | @end defopt | 1351 | @end defopt |
| 1346 | 1352 | ||
| @@ -284,7 +284,7 @@ domain. | |||
| 284 | 284 | ||
| 285 | *** The URL package now support https over proxies supporting CONNECT. | 285 | *** The URL package now support https over proxies supporting CONNECT. |
| 286 | 286 | ||
| 287 | --- | 287 | +++ |
| 288 | *** `url-user-agent' now defaults to `default', and the User-Agent | 288 | *** `url-user-agent' now defaults to `default', and the User-Agent |
| 289 | string is computed dynamically based on `url-privacy-level'. | 289 | string is computed dynamically based on `url-privacy-level'. |
| 290 | 290 | ||