Witold Filipczyk
9c3817675f
set_nonblocking_fd seems to be superfluous
2006-05-06 08:07:38 +02:00
Witold Filipczyk
c283f8cfd9
Gradual rendering in pager mode. ELinks is almost as good as less.
...
TODO: cg-log -c | elinks
2006-05-05 21:12:10 +02:00
Witold Filipczyk
e0103c2c68
Drop unnecessary cgi_pipes[2]
2006-05-03 21:46:39 +02:00
Witold Filipczyk
8b77bc6617
enum connection_state instead of int to satisfy tcc
2006-04-05 16:27:16 +02:00
Witold Filipczyk
55bd690b88
Files under /usr/share/doc/ncurses-c++-devel-5.5 (directory with
...
+ in filename) were unreachable. This is fix for it
2006-04-04 20:21:20 +02:00
Witold Filipczyk
1fc28980d7
Parsing filesize on ftp.task.gda.pl
2006-03-16 22:13:40 +01:00
Kalle Olavi Niemitalo
4217f2c555
Merge with http://elinks.cz/elinks.git
2006-02-18 12:21:47 +02:00
Miciah Dashiel Butler Masters
190259ca22
mem_alloc_align: drop the obj type parameter
...
Instead use the object itself, i.e., replace typeof(obj) with
typeof(**ptr).
2006-02-17 17:32:59 +00:00
Kalle Olavi Niemitalo
a1f26c1f25
Merge with http://elinks.cz/elinks.git
2006-02-12 17:54:22 +02:00
Miciah Dashiel Butler Masters
daad05c055
Don't check is_in_progress_state before calling cancel_download
...
With commit 637f1e82e6
('NET: Merge
change_connection into cancel_download'), cancel_download returns
immediately if the connection is not in a result state, so save some
code by not checking is_in_progress_state before calling cancel_download.
2006-02-12 15:41:21 +00:00
Kalle Olavi Niemitalo
416bd01269
Merge with http://elinks.cz/elinks.git
2006-02-12 00:34:53 +02:00
witekfl
15b52b62e4
REFERRER is back
2006-02-11 19:11:50 +01:00
Petr Baudis
c0f98c34ce
Revert witekfl's e723ddaee6
...
This is utterly silly and breaks plenty of stuff - Witek, you CAN'T append
slashes to all hosts just because some silly referer needs it, everywhere
else we NEED the hosts without slashes!
2006-02-11 17:44:54 +01:00
Kalle Olavi Niemitalo
0066214b47
Merge with http://elinks.cz/elinks.git
2006-02-10 09:15:12 +02:00
witekfl
e723ddaee6
Add slash after host. Required by URI_HTTP_REFERRER_HOST
2006-02-09 22:46:44 +01:00
Jonas Fonseca
4b91866c84
GOPHER: Blast end_gopher_connection which now only wraps abort_connection
2006-02-08 21:47:54 +01:00
Jonas Fonseca
854bb90d88
NET: Move cache entry normalization to abort_connection
...
It simplifies the code and ensures that stuff like conn->from is properly
updated.
2006-02-08 21:40:08 +01:00
Jonas Fonseca
4bfd40ec10
NNTP: Use state instead of conn->state, since it hasn't been updated yet
...
Fixes: 1735f96a87
2006-02-08 21:04:19 +01:00
Jonas Fonseca
1735f96a87
FTP, NNTP: Normalize the cache entry before setting the connection state
...
... so it is normalized when the download callbacks are called.
2006-02-08 20:45:15 +01:00
Kalle Olavi Niemitalo
b1f8756c59
Merge with http://elinks.cz/elinks.git
2006-02-05 17:48:43 +02:00
Jonas Fonseca
3324496b57
NET: Replace change_connection with cancel_download and move_download
...
This simplifies unqueuing of downloads and makes it more obvious that
the 'change' being performed is to migrate or replace an old download
handle with a new one.
2006-02-03 10:44:28 +01:00
Jonas Fonseca
5bf39bd304
FSP: Check and exit the file 'writer' process if writes to stdout fails
...
This ensures that the 'writer' process will remove itself when the
main ELinks process for some reason decides to shutdown the connection.
Before the 'writer' process would complete it's task taking up unnecessary
system resources.
This is mostly an issue when fetching big files. Therefore only file
fetching is fixed. FIXME added about also checking return codes for write
associated with directory listing.
Reported-by: zas
2006-02-02 16:29:20 +01:00
Jonas Fonseca
4de26051b9
Ignore test files
2006-01-31 22:23:22 +01:00
Miciah Dashiel Butler Masters
db9768963f
Merge with git+ssh://pasky.or.cz/srv/git/elinks.git
...
git+ssh://pasky.or.cz/srv/git/elinks.git
2006-01-30 15:42:03 +00:00
41e8570e64
Merge with git+ssh://pasky.or.cz/srv/git/elinks.git
2006-01-30 12:42:40 +01:00
aed26bf002
Introduced CGI module
2006-01-30 08:56:40 +01:00
Jonas Fonseca
ba2b6e633a
DIRLIST:Use directory listing initializer in the Gopher protocol module
2006-01-30 02:41:09 +01:00
Jonas Fonseca
94f4b2fd1d
DIRLIST: Cleanup macros used in the FTP directory listing
2006-01-30 01:29:40 +01:00
Jonas Fonseca
d8ef7e1b68
DIRLIST: Use directory listing initializer in the FSP protocol module
2006-01-30 01:25:39 +01:00
Jonas Fonseca
b567f6a5db
DIRLIST: Use directory listing initializer in the FTP protocol module
2006-01-30 01:25:30 +01:00
Jonas Fonseca
c96cb0bbae
DIRLIST: Use directory listing initializer in the file protocol module
2006-01-30 01:25:18 +01:00
Jonas Fonseca
865af9ac4a
DIRLIST: Add helper to at start of (HTML) directory listing
2006-01-30 01:22:31 +01:00
Jonas Fonseca
7d1ff4fbf1
Only add ending slash to directory URLs
...
Not even to directory names. We don't do that for file: or ftp: protocol.
Fixes: af2cc87054
2006-01-29 18:35:59 +01:00
Laurent MONIN
cf429c4ecc
FSP: trim trailing whitespaces.
2006-01-29 18:01:48 +01:00
Laurent MONIN
af2cc87054
FSP: display_entry() cleanup, and mark directories by an ending /
...
in lists.
2006-01-29 18:01:22 +01:00
Laurent MONIN
0c4bc5a362
FSP: reduce code redundancy, introducing display_entry().
2006-01-29 17:53:26 +01:00
Laurent MONIN
d07cf588bd
FSP: reduce code redundancy.
2006-01-29 17:48:09 +01:00
5511c5b748
Merge with git+ssh://pasky.or.cz/srv/git/elinks.git
2006-01-29 16:51:11 +01:00
Jonas Fonseca
a236608554
Do not set the content type for FSP files
...
Simplify commit 8d4f44f2f1
, in particular
detecting MIME types for files. It is more consistent to do it the way
it was already done by the session/download code.
Instead, write a NUL byte to stderr when getting FSP files and only set
cache->content_type when the header string is non-empty.
Additionally it also moves close(stderr) after the fsp_error() in the
file handling part of do_fsp() so the error message is shown with the
correct type.
2006-01-29 14:27:14 +01:00
46aae704eb
Added slash to base href when directory didn't end with '/'
2006-01-29 13:22:05 +01:00
Miciah Dashiel Butler Masters
5bcb1309da
Use enum connection_state
...
Use enum connection_state instead of int in load_uri,
proxy_uri, get_proxy_worker, and get_proxy_uri. See commit
d18809522e
. I hope that satisfies TCC.
2006-01-28 20:21:09 +00:00
Laurent MONIN
5114c9d110
Trim trailing whitespaces.
2006-01-28 01:59:22 +01:00
e8030e09fd
Set text/plain for errors
2006-01-26 18:35:58 +01:00
8d4f44f2f1
Content-Type handling
2006-01-26 18:20:13 +01:00
f47daa2291
Use slashes after directories. Blocks are not used where there is only
...
one instruction
2006-01-26 14:34:11 +01:00
Jonas Fonseca
ba3e4a611d
Merge with git+ssh://pasky.or.cz/srv/git/elinks.git
2006-01-21 23:38:15 +01:00
d18809522e
Make elinks tcc (tiny C compiler) friendly.
...
If you want to try tcc use CC=tcc ./configure and make LD=tcc.
I built ELinks with tcc, but ELinks segfaults.
2006-01-21 21:33:23 +01:00
Jonas Fonseca
91e8fdf34b
Fix the EPLF FTP parser test to run FreeBSD
2006-01-21 08:28:57 +01:00
Jonas Fonseca
c97b4be9b9
Move SUBDIRS and OBJS defining before their conditional defining
2006-01-18 21:53:13 +01:00
Jonas Fonseca
7f076a8832
Also compile in protocol/common when CGI is enabled
2006-01-18 21:50:43 +01:00