summaryrefslogtreecommitdiffstats
path: root/modules/httplib
Commit message (Collapse)AuthorAgeFilesLines
* refactor httplib (#18338)Gusted2022-01-191-285/+7
| | | | | | - Remove a lot of unused code(most if not all were introduced in gogs for webhooks usages). Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* refactor: move from io/ioutil to io and os package (#17109)Eng Zer Jun2021-09-221-5/+4
| | | | | | | | | The io/ioutil package has been deprecated as of Go 1.16, see https://golang.org/doc/go1.16#ioutil. This commit replaces the existing io/ioutil functions with their new definitions in io and os packages. Signed-off-by: Eng Zer Jun <engzerjun@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Add an abstract json layout to make it's easier to change json library (#16528)Lunny Xiao2021-07-241-2/+1
| | | | | | | | | | | * Add an abstract json layout to make it's easier to change json library * Fix import * Fix import sequence * Fix blank lines * Fix blank lines
* Second attempt at preventing zombies (#16326)zeripath2021-07-141-6/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Second attempt at preventing zombies * Ensure that the pipes are closed in ssh.go * Ensure that a cancellable context is passed up in cmd/* http requests * Make cmd.fail return properly so defers are obeyed * Ensure that something is sent to stdout in case of blocks here Signed-off-by: Andrew Thornton <art27@cantab.net> * placate lint Signed-off-by: Andrew Thornton <art27@cantab.net> * placate lint 2 Signed-off-by: Andrew Thornton <art27@cantab.net> * placate lint 3 Signed-off-by: Andrew Thornton <art27@cantab.net> * fixup Signed-off-by: Andrew Thornton <art27@cantab.net> * Apply suggestions from code review Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Lauris BH <lauris@nix.lv>
* fix webhook timeout bug (#15613)Lunny Xiao2021-04-251-4/+5
| | | * Also fix the potential problem in httplib
* Migrate to use jsoniter instead of encoding/json (#14841)zeripath2021-03-011-1/+3
| | | | | | | | | | * Migrate to use jsoniter * fix tests * update gitea.com/go-chi/binding Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de>
* Add golangci (#6418)kolaente2019-06-121-18/+17
|
* Add sensitive headers (#3429)Antoine GIRARD2018-01-311-0/+6
| | | | | | | * Add HeaderWithSensitiveCase methods to respect casing * Update webhook.go
* Use GiteaServer as the user agent for http requests (#3404)Sandro Santilli2018-01-221-1/+1
| | | Otherwise we're still presenting ourselves as GogsServer...
* Add internal routes for ssh hook comands (#1471)Lunny Xiao2017-04-191-0/+5
| | | | | | | | | | | | | | | | * add internal routes for ssh hook comands * fix lint * add comment on why package named private not internal but the route name is internal * add comment above package private why package named private not internal but the route name is internal * remove exp time on internal access * move routes from /internal to /api/internal * add comment and defer on UpdatePublicKeyUpdated
* Fix typos in models/ and modules/ (#1248)Ethan Koenig2017-03-151-1/+1
|
* add ProxyFromEnvironment if none set (#1096)Schwobaland2017-03-021-1/+5
|
* Golint fixed for modules/httplibLunny Xiao2016-11-251-15/+18
|
* Remove unused testsUnknwon2016-02-131-206/+0
| | | | | Module httplib will be replaced a well done third-party package soon, so remove its unused tests
* fix insecure tls when trigger taskUnknwon2015-10-261-6/+6
|
* add webhook recent deliveriesUnknwon2015-08-271-122/+123
|
* #634Unknwon2014-11-182-45/+57
|
* Fix #362, update code with upstreamUnknwon2014-08-232-86/+366
|
* Finish new web hook pagesUnknwon2014-08-091-62/+0
|
* Fix #98, support web hookUnknown2014-05-063-0/+424