Commit Graph

147 Commits

Author SHA1 Message Date
Adam Tauber
760d7739f1 [enh] add request duration to statusline 2017-03-04 04:13:53 +01:00
Adam Tauber
54d532497d [enh] add statusline 2017-03-04 03:25:48 +01:00
Adam Tauber
aab7f36262 [fix] gofmt 2017-03-03 21:43:50 +01:00
Adam Tauber
0a5749815d Merge branch 'autocomplete'
closes #80
2017-03-03 21:06:45 +01:00
Adam Tauber
a8baa739d2 [fix] autocomplete positioning 2017-03-03 20:21:37 +01:00
Benaiah Mischenko
ec9e472797 Autocomplete request headers 2017-03-03 20:21:37 +01:00
Adam Tauber
efc1a4b97e Merge pull request #83 from Benaiah/sample-config-defaults
Make sample config have default config settings
2017-03-03 19:05:21 +01:00
Benaiah Mischenko
9ed7a7d404 Make sample config have default config settings 2017-03-03 09:50:06 -08:00
Adam Tauber
2e10685f7d Merge pull request #79 from udhos/master
Restrict allowed TLS versions.
2017-03-02 21:36:18 +01:00
Everton Marques
5a78cc8930 Fix go vet complaint. 2017-03-02 17:29:12 -03:00
Everton Marques
4d5bc7f55f Cleanup: remove redundant text. 2017-03-02 17:12:49 -03:00
Everton Marques
4e2c20a29d cURL flags, global var in uppercase, break arg parsing by returning error. 2017-03-02 17:11:07 -03:00
Everton Marques
c30e7a09ae Restrict allowed TLS versions. 2017-03-02 17:09:12 -03:00
Adam Tauber
3e3f1142e3 [enh] ability to disable following redirections 2017-03-02 02:48:47 +01:00
Adam Tauber
ed86f0e1ac [fix] import order 2017-03-01 05:18:17 +01:00
Adam Tauber
85147bed2d [enh] add socks proxy support - closes #77 2017-03-01 05:17:57 +01:00
Adam Tauber
711176ab44 [fix] allow empty URL scheme 2017-02-25 18:22:28 +01:00
Adam Tauber
7ddc409929 [fix] disable infinite down scroll - fixes #31 2017-02-25 03:38:47 +01:00
Adam Tauber
34e53c339b [enh] curl compatibility: add -x, --proxy flags to modify HTTP proxy - closes #73 2017-02-24 22:32:02 +01:00
Adam Tauber
4f308726ce [doc] update keybindings in help text 2017-02-24 22:05:45 +01:00
Adam Tauber
1969400729 [enh] curl compatibility: -k flag alias for --insecure 2017-02-24 22:04:23 +01:00
Adam Tauber
5a15ac3fbd Merge pull request #58 from dsalahutdinov/master
feature: result formatter extensibility with minor refactor and sever…
2017-02-24 21:44:34 +01:00
Salahutdinov Dmitry
e6e364370d feature: result formatter extensibility with minor refactor and several testsy 2017-02-24 21:23:57 +05:00
Adam Tauber
e965e65506 Merge pull request #71 from nwidger/master
Use mime.ParseMediaType to parse Content-Type header
2017-02-23 01:58:05 +01:00
nwidger
c80a740d57 Use mime.ParseMediaType to parse Content-Type header
In addition, detection of JSON bodies has been expanded to include
both "application/json" as well as any Content-Type ending in "+json".
This should catch all JSON media types as registered in the IANA Media
Type registry located here:

http://www.iana.org/assignments/media-types/media-types.xhtml
2017-02-22 19:46:44 -05:00
Adam Tauber
15bccf5632 [enh] more flexible json content-type detection - closes #67 2017-02-23 01:05:02 +01:00
Adam Tauber
56b3a1a4ea [fix] delete word off-by-one 2017-02-22 07:28:40 +01:00
Adam Tauber
d8a8ca2d97 [fix] set valid cursor position on 2017-02-22 05:32:36 +01:00
Adam Tauber
f1acb28e73 [fix] correct home/end positions for long lines 2017-02-22 04:46:33 +01:00
Adam Tauber
7f60f36194 [enh] add "delete word" command and bind to ctrl+w by default 2017-02-22 03:55:29 +01:00
Adam Tauber
1e666b8541 [enh] implement "delete line" functionality and bind to ctrl+d by default 2017-02-22 02:54:23 +01:00
Adam Tauber
64a6272718 [enh] support JSON request - related to #70 2017-02-22 01:24:17 +01:00
Pawel Wolowiec
600c77648a Refactor (#66)
Moved most view properties to the top, leaving Layout function much smaller + minor refactor
2017-02-19 23:54:03 +01:00
Adam Tauber
f34c82a438 [enh] v0.2.0 2017-02-18 00:36:36 +01:00
Adam Tauber
ee71867550 [doc] config documentation update 2017-02-17 01:47:04 +01:00
Adam Tauber
0568b27d53 [fix] disable wrapping of editable views - related to #61 2017-02-17 00:29:37 +01:00
Adam Tauber
70e76c45b5 Merge pull request #62 from nwidger/master
Support PATCH requests with JSON bodies
2017-02-17 00:09:35 +01:00
nwidger
3dcd3b24d4 Set x-www-form-urlencoded content-type for non-binary data
Set the add_content_type when adding non-binary data with the "-d" and
"--data" options so that a "Content-Type:
application/x-www-form-urlencoded" header will get added to the
request.
2017-02-16 17:17:49 -05:00
nwidger
dade4d5a47 Add "--data-binary" option to help text 2017-02-16 16:14:22 -05:00
Adam Tauber
32d706201b Merge pull request #60 from wolowiec/refactor
Reformatted layout setup, so everything can be configured in one place
2017-02-16 21:03:15 +01:00
nwidger
67e7f4d0d1 Support PATCH requests with JSON bodies
Chrome's 'Copy as cURL' option generates "-X PATCH -H 'Content-Type:
application/json' --data-binary '<json...>'" options to construct a
PATCH request that contains a JSON body.  This commit allows wuzz to
send such a request by making the following changes:

Modify App.ParseArgs to support the "--data-binary" option.  When this
option is specified, do not pass the body through url.QueryUnescape
and do not add automatically a "Content-Type:
application/x-www-form-urlencoded" header to the request.

Modify App.ParseArgs to remember if the request method has been
explicitly set via the "-X" or "--request" options and in such
situations to not automatically set the request method to POST when
request data is present.

Modify App.SubmitRequest to include the request body if the method is
PATCH.

Modify App.SubmitRequest to not replace newlines (\n) with
ampersands (&) in the request body unless a "Content-Type:
application/x-www-form-urlencoded" header exists.  This required
moving the creation of the headers to be before the creation of the
body and the actual request.
2017-02-16 13:09:55 -05:00
Pawel Wolowiec
668401e717 run gofmt 2017-02-16 09:43:44 +01:00
Pawel Wolowiec
643cce9fb8 Reformatted layout setup, so everything can be configured in one place 2017-02-16 09:34:45 +01:00
Adam Tauber
196492806d Merge pull request #59 from wolowiec/refactor
Refactored many strings into consts
2017-02-16 06:15:12 +01:00
Pawel Wolowiec
e5f61d9466 Changed g.Ascii to g.ASCII 2017-02-16 01:22:15 +01:00
Pawel Wolowiec
3700b249e0 Refactored many strings into consts
+ changed minor spell errors
2017-02-16 01:19:59 +01:00
Adam Tauber
38134db8fe Merge pull request #55 from asciimoo/configurable-keybindings
Configurable keybindings and help popup
2017-02-15 23:00:30 +01:00
Adam Tauber
bf3c5b6bca [enh] configurable keybindings ++ help popup 2017-02-15 04:27:20 +01:00
Adam Tauber
0c6ade0216 [doc] update screencast 2017-02-12 23:25:58 +01:00
Adam Tauber
f3a169db6c [fix] save result popup width 2017-02-12 23:19:53 +01:00