Skip to content

Commit

Permalink
recover file
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwiichang committed Jun 24, 2021
1 parent 7a6d1d2 commit 30bfbb0
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions ews.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@ import (
"bytes"
"crypto/tls"
"fmt"
"github.com/Azure/go-ntlmssp"
"io/ioutil"
"net/http"
"net/http/httputil"
"os"

"github.com/Azure/go-ntlmssp"
)

const (
Expand Down Expand Up @@ -69,8 +67,6 @@ func (c *client) SendAndReceive(body []byte) ([]byte, error) {
bb = append(bb, body...)
bb = append(bb, soapEnd...)

os.WriteFile("./send.xml", bb, 0755)

req, err := http.NewRequest("POST", c.EWSAddr, bytes.NewReader(bb))
if err != nil {
return nil, err
Expand Down Expand Up @@ -104,7 +100,6 @@ func (c *client) SendAndReceive(body []byte) ([]byte, error) {
return nil, err
}

os.WriteFile("./recv.xml", respBytes, 0755)
return respBytes, err
}

Expand Down

0 comments on commit 30bfbb0

Please sign in to comment.