Taufiq Rahman
c32a0f5f71
fix lint warnings (issue 2541) ( #2551 )
...
* Lint: fix some errcheck #2541
* Lint: fix passing structcheck #2541
* Lint: update fix structcheck #2541
* Lint: fix errcheck for basicauth, browse, fastcgi_test #2541
* Lint: fix errcheck for browse, fastcgi_test, fcgiclient, fcgiclient_test #2541
* Lint: fix errcheck for responsefilter_test, fcgilient_test #2541
* Lint: fix errcheck for header_test #2541
* Lint: update errcheck for fcgiclient_test #2541
* Lint: fix errcheck for server, header_test, fastcgi_test, https_test, recorder_test #2541
* Lint: fix errcheck for tplcontext, vhosttrie_test, internal_test, handler_test #2541
* Lint: fix errcheck for log_test, markdown mholt#2541
* Lint: fix errcheck for policy, body_test, proxy_test #2541
* Lint: fix errcheck for on multiple packages #2541
- reverseproxy
- reverseproxy_test
- upstream
- upstream_test
- body_test
* Lint: fix errcheck in multiple packages mholt#2541
- handler_test
- redirect_test
- requestid_test
- rewrite_test
- fileserver_test
* Lint: fix errcheck in multiple packages mholt#2541
- websocket
- setup
- collection
- redirect_test
- templates_test
* Lint: fix errcheck in logger test #2541
run goimports against #2551
- lexer_test
- log_test
- markdown
* Update caddyhttp/httpserver/logger_test.go
Co-Authored-By: Inconnu08 <taufiqrx8@gmail.com>
* Update log_test.go
* Lint: fix scope in logger_test #2541
* remove redundant err check in logger_test #2541
* fix alias in logger_test #2541
* fix import for format #2541
* refactor variable names and error check #2541
2019-04-22 10:20:37 -06:00
Josh Soref
8369a12115
Fix spelling ( #2448 )
...
* spelling: access
* spelling: associated
* spelling: because
* spelling: characteristics
* spelling: chooses
* spelling: cleared
* spelling: clustering
* spelling: collaborators
* spelling: connection
* spelling: content
* spelling: conversion
* spelling: deferring
* spelling: detection
* spelling: displayed
* spelling: dispenser
* spelling: heuristic
* spelling: nonexistent
* spelling: oflisting
* spelling: preparses
* spelling: response
* spelling: responder
* spelling: sensitive
* spelling: specify
* spelling: simple
* spelling: spawning
* spelling: status
* spelling: unsupported
* spelling: upstream
* spelling: username
* spelling: whether
2019-01-29 10:51:10 -07:00
Etienne Bruines
6a9aea04b1
fastcig: GET requests send along the body ( #1975 )
...
Fixes #1961
According to RFC 7231 and RFC 7230, there's
no reason a GET-Request can't have a body
(other than it possibly not being supported
by existing software). It's use is simply not
defined, and is left to the application.
2018-02-11 14:45:45 -07:00
Matthew Holt
baf6db5b57
Apply Apache license to all .go source files ( closes #1865 )
...
I am not a lawyer, but according to the appendix of the license,
these boilerplate notices should be included with every source file.
2017-09-22 23:56:58 -06:00
Fiisio
a59bdd08ca
fastcgi: use bytes.Contains and strconv.Itoa ( #1857 )
2017-09-06 06:33:48 -06:00
Abiola Ibrahim
6aba4a311a
fastcgi: Revert persistent connections ( #1739 )
...
* Revert fastcgi to emove persistent connections.
* Fix linting errors
* reintroduce timeout tests
* check for non-zero timeout
* ensure resp is not nil
2017-07-18 12:52:53 -06:00
ssut
c62b6b9f1a
fastcgi: Fix for missing content-length header when using QUIC ( #1501 )
...
* Fix for missing content-length header when using QUIC
If request.ContentLength is set then it will be used instead of getting
it from request.Header map since quic-go(lucas-clemente/quic-go@bb24be8 )
will not store (and pass) the Content-Length header using its header
map.
This fixes a potential issue where FastCGI POST requests body empty when
QUIC is enabled. (#1370 )
* Change the data type for fastcgi contentLength to int64
quic-go uses int64 for contentLength
* Fix an error for undeclared variable
* Fix test for fcgiclient
the data type for contentLength
2017-03-09 19:36:04 -07:00
ericdreeves
5874fbeb7e
Add send_timeout property to fastcgi directive.
...
* Convert rwc field on FCGIClient from type io.ReadWriteCloser to net.Conn.
* Return HTTP 504 to the client when a timeout occurs.
* In Handler.ServeHTTP(), close the connection before returning an HTTP
502/504.
* Refactor tests and add coverage.
2016-12-03 16:15:41 -06:00
ericdreeves
5a6b765673
Add connect_timeout and read_timeout to fastcgi. ( #1257 )
2016-11-19 09:05:29 -07:00
Mateusz Gajewski
8cc3416bbc
Remove dead code, do struct alignment, simplify code
2016-10-25 19:19:54 +02:00
Matthew Holt
a762dde145
Migrate remaining middleware packages
2016-06-05 22:39:23 -06:00