Miciah Dashiel Butler Masters
157b08609f
decompress_data: remove some unnecessary code
2006-11-05 03:17:30 +00:00
Witold Filipczyk
4bf3e2693b
"If-Modified-Since" second approach.
...
Added document.cache.interval option. When time elapsed since previous access
to the document is less than interval then the document is taken from
the cache. Otherwise the request with filled "If-Modified-Since" and/or
"If-None-Match" header field is sent. By default interval is set to 10 minutes.
This requires the correct time to be set on your machine.
2006-10-26 11:53:30 +02:00
Petr Baudis
9c8fff1100
Merge with /srv/git/elinks.git
2006-10-12 23:44:12 +02:00
Witold Filipczyk
8d6a73646b
Commented code related to "If-Modified-Since" (infinite loop).
2006-10-12 14:07:58 +02:00
Petr Baudis
647db326fb
Merge with /srv/git/elinks.git
2006-10-12 11:11:05 +02:00
Petr Baudis
f06aed0d8f
More verbose assert messages for invalid h1/h2 in POST buffer
2006-10-12 11:10:41 +02:00
Witold Filipczyk
cc6c59d932
Handling If-Modified-Since.
2006-10-08 16:24:47 +02:00
Kalle Olavi Niemitalo
92cb452a9e
Rename CONFIG_UTF_8 to CONFIG_UTF8.
...
The configure script no longer recognizes "CONFIG_UTF_8=yes" lines
in custom features.conf files. They will have to be changed to
"CONFIG_UTF8=yes". This incompatibility was deemed acceptable
because no released version of ELinks supports CONFIG_UTF_8.
The --enable-utf-8 option was not renamed.
2006-09-17 16:12:47 +03:00
Jonas Fonseca
b9d66bd9bd
Fix compilation on Minix3
...
- Include arpa/inet.h to get hton* ntoh* functions.
- Use socklen_t instead of int.
- Try to define PF_INET to AF_INET if it doesn't exist.
Reported-by: Andy Tanenbaum <ast@cs.vu.nl>
2006-08-22 22:18:00 +02:00
Witold Filipczyk
8615cb529e
Added output parameter to the get_filesize_from_RETR. It indicates
...
whether we ought to add the conn->progress->start to
the conn->est_length. Currently displaying resuming works correctly with
ftp.task.gda.pl and ftp.pld-linux.org.
2006-08-19 09:11:53 +02:00
Witold Filipczyk
77470526ba
vsftpd shows total filesize, so I commented out addition.
...
I know that this is not correct for every server.
Show me ftp sites, where resuming displays wrong filesize.
2006-08-19 00:06:04 +02:00
Witold Filipczyk
5e1a1a215a
Fixed about:
2006-08-13 08:58:20 +02:00
Kalle Olavi Niemitalo
ef2f6383c6
do_auth_dialog: Don't claim that the authentication is for HTTP.
2006-08-06 20:02:36 +00:00
Kalle Olavi Niemitalo
ca496aa2dd
do_auth_dialog: Fix off-by-one error leading to reads of uninitialized memory.
...
This bug manifested as a junk character at the end of the text in the
authentication dialog.
2006-08-06 20:02:35 +00:00
Witold Filipczyk
2e818771d0
Made directory listings XML compliant
2006-07-31 13:24:39 +02:00
Laurent MONIN
1136aefb71
Trim trailing whitespaces.
2006-07-27 09:51:10 +02:00
Witold Filipczyk
2a6125e3d0
Merge with utf8. src/document/plain/renderer.c replaced by utf8 version
2006-07-21 13:12:06 +02:00
Laurent MONIN
c2ca89cab1
HTTP DIGEST AUTH: fix wrong sizeof(), patch by Vitaly Lavrov (added to
...
AUTHORS). Close bug 769.
2006-07-05 15:07:48 +02:00
Witold Filipczyk
1f747b2299
Local file browsing works under Windows. It is done lame way.
...
In protocol/common.c length of string is known, so pass it
instead of -1 to encode_uri_string.
Introduced encode_win32_uri_string, because there were problems
with : and \ in base href.
2006-07-02 19:20:27 +02:00
Witold Filipczyk
8fa2b8180e
s|/|\|g in directory listings under Windows
2006-07-02 16:48:39 +02:00
Witold Filipczyk
c6426b4634
CHAR_DIR_SEP used in directory listings
2006-07-02 16:38:52 +02:00
Witold Filipczyk
3fd1ac87bd
STRING_DIR_SEP in file redirects
2006-07-02 09:01:14 +02:00
Miciah Dashiel Butler Masters
888faebaea
parse_header_param: better describe behaviour when @ret is NULL
...
This got lost during merging of Kalle Olavi Niemitalo's patches.
2006-06-23 06:07:22 +00:00
Laurent MONIN
645ee58c83
http_negotiate_get(): only change *is_new on successful allocation.
2006-06-16 16:27:28 +02:00
Laurent MONIN
2217c885b4
http_negotiate: tidy up.
2006-06-16 16:26:20 +02:00
Laurent MONIN
2e0d5aa197
Add forgotten files from negotiate-auth patch.
2006-06-14 20:25:11 +02:00
Laurent MONIN
b373ded19b
Trim trailing whitespaces.
2006-06-14 14:46:30 +02:00
Laurent MONIN
4b04a25b32
Support for negotiate-auth, using GSSAPI. It makes possible to
...
authenticate users by Kerberos. Patch by Karel Zak.
2006-06-14 14:41:59 +02:00
Laurent MONIN
b6e6ac96a3
ftp_process_dirlist(): re-introduce else { ERROR() } part, just drop
...
#ifdef/#endif.
2006-06-10 01:28:35 +02:00
Laurent MONIN
de2264f712
ftp_process_dirlist(): minor test optiization.
2006-06-10 01:12:38 +02:00
Laurent MONIN
6960fc8feb
ftp_process_dirlist(): drop stale debug code, spotted by Miciah.
2006-06-10 00:58:50 +02:00
Miciah Dashiel Butler Masters
14595404d1
ftp_process_dirlist: Rename local variable bufp to line_length.
2006-06-09 21:46:47 +00:00
Miciah Dashiel Butler Masters
71ec83c0de
ftp_get_line: Reflow some code.
2006-06-09 21:43:36 +00:00
Miciah Dashiel Butler Masters
2d49225db3
ftp_get_line: Reflow some code.
2006-06-09 21:43:18 +00:00
Miciah Dashiel Butler Masters
e1ea1cf2bb
ftp_get_line: Don't update *@len if returning -1.
2006-06-09 21:42:16 +00:00
Miciah Dashiel Butler Masters
ea5b06c329
ftp_process_dirlist: Drop a silly comment.
2006-06-09 21:39:51 +00:00
Miciah Dashiel Butler Masters
4122a97a03
Factor ftp_get_line out of ftp_process_dirlist.
...
Per Quiznos's suggestion.
2006-06-09 21:38:06 +00:00
Miciah Dashiel Butler Masters
585f7c5f2b
ftp_process_dirlist: check for bufl == 0 earlier.
2006-06-09 20:17:57 +00:00
Miciah Dashiel Butler Masters
dafc209c61
Simplify ftp_process_dirlist via memchr.
2006-06-09 20:16:35 +00:00
Miciah Dashiel Butler Masters
8c3d7a8e72
Fix data: protocol
...
Increment conn->from by the length of the data so that when
abort_connection calls normalize_cache_entry, it doesn't truncate the
cache entry to 0 length.
2006-06-08 17:42:27 +00:00
Kalle Olavi Niemitalo
819b6fab80
parse_header_param stores the string via a pointer parameter.
...
Its return value is now an enum that lets callers know whether an
error occurred. However, this commit changes the callers only
minimally, so they do not yet check the return value.
2006-06-05 20:22:53 +00:00
Miciah Dashiel Butler Masters
d6d72a6ff5
Relabel the auth module
...
As noted by Jonas Fonseca, the auth module is used by FTP as well as HTTP,
so take 'HTTP' out of the name.
2006-06-02 19:08:09 +00:00
Kalle Olavi Niemitalo
d10a489a14
BFU: Mark format strings in struct listbox_ops_messages.
...
With regular comments in the definition of the structure itself,
and with xgettext:c-format comments in constants of that type,
if xgettext would otherwise guess wrong; so that translators
will know they'll have to double any percent signs they add.
I didn't regenerate PO files, though.
2006-06-02 19:08:09 +00:00
Laurent MONIN
1d3656a317
Pass a pointer to a hash pointer to free_hash() to ensure hash pointer
...
is NULL on return.
2006-05-31 19:33:36 +02:00
Laurent MONIN
54099f5286
Do not export init_hash(),strhash() and hash_size() anymore, use a
...
wrapper named init_hash8() instead.
2006-05-31 19:17:01 +02:00
Miciah Dashiel Butler Masters
337958d4e4
Modularise HTTP authentication
2006-05-20 15:01:23 +00:00
Miciah Dashiel Butler Masters
eee3ecdbbc
BitTorrent: Remove superfluous check and assignment
...
unchoke_bittorrent_peer checks and clears peer->remote.choked,
so do not do so in the caller.
2006-05-20 12:13:32 +00:00
Miciah Dashiel Butler Masters
fe07757574
BitTorrent: Remove a superfluous check and assignment
...
choke_bittorrent_peer checks and sets peer->remote.choked,
so do not do it again in the caller.
2006-05-20 12:13:30 +00:00
Witold Filipczyk
f377e6f4af
copiousoutput: only mark /dev/fd/%d as popen data . I reflect if ELinks may
...
run out of fds
2006-05-09 09:42:00 +02:00
Witold Filipczyk
4dc4ea47f2
copiousoutput: cleanup after copiousoutput handling. Temporary files should
...
be deleted
2006-05-09 09:36:16 +02:00