Christoph Polcin
bdacfab947
update README due to API changes
2020-09-29 10:07:39 +02:00
Jarek Kowalski
617404b525
fixed panic due to concurrent map writes
...
Fixes #36
2020-09-28 11:17:19 +02:00
Christoph Polcin
9380631c29
update README
2020-03-03 16:07:24 +01:00
Lukáš Lalinský
a93005d73c
Add File.Path to return the full path ( #34 )
...
Very useful when iterating over ReadDir results and wanting to do some operation on them.
2020-03-03 15:28:06 +01:00
vitalii
321978fa73
ref: make names more descriptive
2019-12-15 01:31:08 +02:00
vitalii
c4c707907d
fix method of getting user's home path
2019-12-15 01:28:41 +02:00
Justus Flerlage
9f625b1b8e
Added check for root path
2019-11-14 22:08:20 +02:00
Justus Flerlage
e53b818e1b
Added check of parentPath in createParentCollection
2019-11-14 22:08:20 +02:00
vitalii
ff7f737904
fix(requests.go): allow www-authenticate to be case-insensitive. close #32
2019-10-05 22:13:01 +03:00
vitalii
38f79aeaf1
fix uploading file with wrong content. close #30
2019-01-03 20:40:47 +02:00
vitalii
6c32839dbd
fix import for command line tool
2018-12-30 13:28:02 +02:00
vitalii
4d70d7ea28
use 'application/xml' instead of 'text/xml'. related with (1) in #15
2018-12-29 22:04:04 +02:00
yatsen1
8bcb1b383c
Fix early defer panic. ( #29 )
2018-11-08 09:39:42 +01:00
vitalii
cba565a9dc
links was updated in readme file. Related to studio-b12/gowebdav#27
...
RFC 2518 was removed because it is obsolete
RFC 4918 was added because it is actual
RFC 5689 was added because it updates RFC 4918
2018-10-24 14:05:51 +03:00
vitalii
425530b55e
cmd: readme was updated. closes studio-b12/gowebdav#27
...
Wrapper script section was updated
2018-10-22 08:29:10 +03:00
vitalii
7493d8befb
readme file for command line tool was added
...
Close #27
2018-10-22 08:10:23 +03:00
vitalii
e29bc0f031
main readme file was updated
2018-10-22 08:09:12 +03:00
vitalii
c8fc9ca590
Merge remote-tracking branch 'upstream/master'
2018-10-21 12:52:46 +03:00
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
vitalii
02aa9bdaeb
unused imports was removed
2018-10-20 23:08:19 +03:00
vitalii
8de8ce169b
Merge remote-tracking branch 'upstream/master'
2018-07-17 14:00:43 +03: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
f821ab73e9
Merge branch 'b12-master'
2018-07-11 12:41:49 +03: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
68824ef55e
createParentCollection() function was added
2018-06-21 16:37:02 +03:00
vitalii
6ca20e2a70
copyMove() function returns error in case of 409 status code
2018-06-21 16:35:39 +03:00
vitalii
790397514e
all cases of Digest authorization was implemented
2018-06-21 16:35:26 +03:00
vitalii
4ca2f77e2b
Merge remote-tracking branch 'upstream/master'
2018-06-21 16:34:17 +03: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
vitalii
d1ebcbebf2
Merge branch 'develop'
2018-06-20 04:02:49 +03:00
vitalii
4f450cfd02
Merge branch 'master' into develop
2018-06-20 04:01:37 +03:00
vitalii
876ef52924
not all webdav servers returns "Dav" header
2018-06-20 03:21:30 +03:00
vitalii
21d86ab356
use import of current fork (instead of original project)
2018-06-20 03:19:23 +03:00
vitalii
97a0b83aeb
bug #14 fixed
...
"opaque" field should not be specified if server did not provide it
2018-06-20 03:17:52 +03:00
vitalii
1fe9163c92
Merge remote-tracking branch 'studio-b12/master'
2018-06-19 11:44:16 +03:00
vitalii
8bab650703
gitignore: .idea folder and *.exe files was added
2018-06-19 11:42:02 +03: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
vitalii
aebc3ef9d2
.idea/ folder and *.exe files was added to .gitignore
2018-06-14 09:24:10 +03: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