emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Take Emacs and package versions into account in URL's, User-Agen


From: Clément Pit--Claudel
Subject: [PATCH] Take Emacs and package versions into account in URL's, User-Agent string
Date: Fri, 15 Apr 2016 13:12:13 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0

Hi all,

Here's a copy of the patch discussed in the "Help understanding the URL code" 
thread.

The current implementation of url reads `url-package-name' and 
`url-package-version' into account only when url-vars.el is loaded, and never 
after that; this patch makes it take them into account in all cases. This 
allows packages to adjust User-Agent strings when making URL requests. It also 
adds the current Emacs version to the User-Agent string.

This is essentially a bug fix: at the moment, these two variables don't behave 
as expected. 

Let me know if there's anything I should to to improve this patch!

Cheers,
Clément.

Attachment: 0001-Take-Emacs-and-package-versions-into-account-in-URL-.patch
Description: Text document

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]