vitalii
a68e21e92b
requests: nil pointer dereference panic was fixed [ #25 ]
...
http.Do() method will return non-nil [error] in following cases:
1. Request is nil
2. Response missing Location header
3. Client failed to parse Location header
4. Method "request.GetBody()" returns error
5. Http.Client.Send() returns error
5. Client timeout was exceeded
Signed-off-by: Christoph Polcin <labs@polcin.de>
2018-10-21 11:15:52 +02:00
Christoph Polcin
3cd755d6c4
make check api
2018-07-14 01:55:58 +02:00
Vitalii
83e3d1e31e
Creating parent collection method was added ( #22 )
...
* method for creating parent collection was added to Client struct
"func (c *Client) createParentCollection(itemPath string) error" was added to request.go file
* using Client's method to create parent collection
in following methods:
Client.Write()
Client.WriteStream()
Client.copymove()
deadlock is impossible in method Client.copymove() because of paragraph #6 section 9.8.5 (https://tools.ietf.org/html/rfc4918#section-9.8.5 ) and paragraph #6 section 9.9.4 (https://tools.ietf.org/html/rfc4918#section-9.9.4 ) of RFC 4918 (https://tools.ietf.org/html/rfc4918 )
* install dependencies script was added to Travis-CI file
* testing was added to Travis-CI file
* error wrapping was removed from Client.put() method
* using an early return on error in case of 409 in Client.Write() method
2018-07-14 01:48:30 +02:00
Christoph Polcin
28039fda22
fmt
2018-07-13 12:12:09 +02:00
Christoph Polcin
45a56c2115
cmd: remove Connect() due to #16
2018-07-13 12:11:56 +02:00
Vitalii
ec1263db2f
all cases of Digest authorization was implemented ( #19 )
...
Digest authentication was improved
2018-07-10 18:51:11 +02:00
Vitalii
95706c0747
.gitignore was expanded ( #18 )
2018-07-08 14:27:10 +02:00
Vitalii
f43a0a4cf8
quick bugfix for issue #20 ( #21 )
...
issue title: "Can't upload file with content"
https://github.com/studio-b12/gowebdav/issues/20
2018-07-08 14:25:00 +02:00
Vitalii
008b27eb0f
bug #14 fixed ( #17 )
...
"opaque" field should not be specified if server did not provide it
2018-06-21 10:57:32 +02:00
Christoph Polcin
c4c24955e1
update README
2018-06-19 08:43:13 +02:00
Christoph Polcin
2593a81bf0
Update issue templates
2018-06-19 08:36:40 +02:00
David
b45378c08f
Check status on every request to fix #14
2018-06-18 10:02:01 -05:00
misha-plus
9ff8e33634
fix authorization
2018-06-10 11:01:51 +02:00
Aaron Bieber
a33240e4ab
add ability to read login / pw from ~/.netrc
2018-05-26 01:36:44 +02:00
Christoph Polcin
fbcb29d33e
docs
2018-05-25 23:59:53 +02:00
David
6d8c168f72
Add Authenticator interface and Digest auth support
2018-05-25 22:40:13 +02:00
Christoph Polcin
5bedad6f1e
cmd: refactor method
2018-05-25 20:31:58 +02:00
Christoph Polcin
31e0b57e53
cmd: PUT with optinal FILE argument
2018-05-25 20:27:56 +02:00
Christoph Polcin
ba3a71318b
cmd: refactor output message
2018-05-25 19:58:46 +02:00
Christoph Polcin
fa51555f16
cmd: simplify arg handling
2018-05-25 12:28:37 +02:00
Christoph Polcin
e0b778960b
cmd: GET with optional FILE argument
2018-05-25 12:28:37 +02:00
Christoph Polcin
a98da9745e
cmd: create parent directories if writing files
2018-05-25 12:28:37 +02:00
Christoph Polcin
1786d37966
ignore second cmd arg
2018-05-25 12:28:37 +02:00
Christoph Polcin
32d5561fb6
add make check
2018-05-25 12:28:37 +02:00
Christoph Polcin
d6b82df09a
update cmd usage
2018-05-25 12:28:34 +02:00
Christoph Polcin
c16034adb0
refactor getCmd
2018-05-25 10:15:26 +02:00
Christoph Polcin
1e4b7a5554
refactor client
2018-05-24 01:24:27 +02:00
Christoph Polcin
3993494db0
refactor cmd
2018-05-24 01:24:25 +02:00
Christoph Polcin
34368960d0
refactor
2018-05-23 14:15:46 +02:00
Christoph Polcin
375f391c8a
Escape URL
2018-05-23 13:41:06 +02:00
Shishkin Artem
c49c91989e
% and # in the URL
2018-05-22 12:34:34 +02:00
Christoph Polcin
7ea52a8e4f
fix close
2018-05-17 01:24:14 +02:00
Abdurrahman
0e7fe90d28
Fetch ContentType and ETag
2018-05-17 01:22:58 +02:00
Christoph Polcin
0120c3c3c4
hello travis-ci
2018-05-17 00:27:52 +02:00
Christoph Polcin
410e447c49
simplify 409 write error handler
2018-05-16 23:39:37 +02:00
Christoph Polcin
65a34986d4
update Readme
2018-05-16 14:35:38 +02:00
Keith Ball
73b90bf27e
Do not do a read on the root on connect
2018-05-16 14:17:35 +02:00
Keith Ball
9c695fe0df
Return codes
2018-05-16 14:15:47 +02:00
Christoph Polcin
732590873e
docs
2018-05-16 14:05:18 +02:00
Christoph Polcin
5a1a85f622
update README
2018-05-16 14:05:18 +02:00
Christoph Polcin
056ad2c4d5
refactor main
2018-05-16 12:23:42 +02:00
Aaron Bieber
8a7d0f4982
cleanup
2018-05-16 10:43:04 +02:00
Aaron Bieber
beeefa572c
more docs / cleanup
2018-05-16 10:42:53 +02:00
Aaron Bieber
b290410ef9
add a bit of doc, cleanup some warnings
2018-05-16 10:42:38 +02:00
Aaron Bieber
af17afdfdc
reference full path for gowebdav
2018-05-16 10:34:52 +02:00
Aaron Bieber
76d61cc2bc
use defaults for GOPATH
2018-05-16 10:34:42 +02:00
Christoph Polcin
06583fe483
update rfc links
2018-05-15 12:14:08 +02:00
Christoph Polcin
49e0e45d8f
fmt
2018-05-15 11:51:59 +02:00
Christoph Polcin
a3c4dbab4a
add SetTimeout
2018-05-15 11:51:53 +02:00
Christoph Polcin
f60c73fbb4
Merge pull request #8 from Ferada/fix-read-status-code
...
Handle error response when reading a file.
2017-12-20 19:29:10 +01:00