After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 166795 - HTTP Method does not send Accept-Charset and Accept-Language headers
HTTP Method does not send Accept-Charset and Accept-Language headers
Status: RESOLVED FIXED
Product: gvfs
Classification: Core
Component: http backend
unspecified
Other All
: Normal normal
: ---
Assigned To: gvfs-maint
gvfs-maint
Depends on: 597004
Blocks:
 
 
Reported: 2005-02-09 14:47 UTC by Rodney Dawes
Modified: 2011-05-07 23:29 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14


Attachments
Patch to add request headers to both versions of HTTP method (1.99 KB, patch)
2005-02-09 14:48 UTC, Rodney Dawes
none Details | Review

Description Rodney Dawes 2005-02-09 14:47:41 UTC
Please describe the problem:
The HTTP method does not send these headers in the HTTP request, making it
impossible to request locale-specific names for remote shares and the like. The
attached patch adds these headers, so that we request UTF-8, and content in the
user's language based on their environment, using g_get_language_names () in
glib 2.6.

Steps to reproduce:
Open the "Network" place in Gnome.

Actual results:
The network share names are not translated.

Expected results:
Network shares that can be translated on the server, are translated to the
user's locale, when possible.

Does this happen every time?
Yes.

Other information:
Comment 1 Rodney Dawes 2005-02-09 14:48:42 UTC
Created attachment 37242 [details] [review]
Patch to add request headers to both versions of HTTP method
Comment 2 Christian Neumair 2005-05-07 23:13:24 UTC
Thanks for your bug report and your efforts!
Comment 3 Rodney Dawes 2005-11-22 16:42:48 UTC
Can I please put this in?
Comment 4 Christian Neumair 2006-02-23 16:17:18 UTC
Maybe you could submit it to the development mailing list [1] for review?
Thanks in advance!

[1] http://mail.gnome.org/mailman/listinfo/gnome-vfs-list
Comment 5 Rodney Dawes 2006-03-22 22:07:55 UTC
It doesn't apply to HEAD any more anyway, due to the HTTP changes there. I guess I'll have to rewrite the patch for HEAD if Christian K. didn't take these changes into account when messing with the HTTP stuff for 2.14, like he said he would.
Comment 6 André Klapper 2008-09-06 19:08:23 UTC
gnome-vfs has been deprecated and superseded by gio/gvfs since GNOME 2.22, hence mass-closing many of the gnome-vfs requests/bug reports. This means that gnome-vfs is NOT actively maintained anymore, however patches are still welcome.

If your reported issue is still valid for gio/gvfs, please feel free to file a bug report against glib/gio or gvfs.

@Bugzilla mail recipients: query for gnome-vfs-mass-close to get rid of these notification emails all together.


General further information: http://en.wikipedia.org/wiki/GVFS 
Reasons behind this decision are listed at http://www.mail-archive.com/gnome-vfs-list@gnome.org/msg00899.html
Comment 7 Rodney Dawes 2008-09-06 19:33:49 UTC
Any http-using code in gio/gvfs should do this too.
Comment 8 Christian Kellner 2009-10-16 08:48:50 UTC
Once there is support in libsoup for that, it will be added to gvfs.
Comment 9 Christian Kellner 2011-05-07 23:29:09 UTC
Committed as 927d91c to git master.

> GET / HTTP/1.1
> Soup-Debug-Timestamp: 1304810305
> Soup-Debug: SoupSessionAsync 1 (0xde88c0), SoupMessage 1 (0xe3d830), SoupSocket 1 (0xe4b010)
> Host: www.google.de
> User-Agent: gvfs/1.9.0
> Accept-Language: en-us, en;q=0.9, en;q=0.8