File tree 2 files changed +3
-1
lines changed
src/WopiHost.Core/Controllers
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -158,6 +158,7 @@ public async Task<IActionResult> PutFile(string id)
158
158
[ HttpPost ( "{id}" ) , WopiOverrideHeader ( [ "PUT_RELATIVE" ] ) ]
159
159
#pragma warning disable CS1998 // Async method lacks 'await' operators and will run synchronously
160
160
public async Task < IActionResult > PutRelativeFile ( string id ) => throw new NotImplementedException ( $ "{ nameof ( PutRelativeFile ) } is not implemented yet.") ;
161
+ #pragma warning restore CS1998 // Async method lacks 'await' operators and will run synchronously
161
162
162
163
/// <summary>
163
164
/// Changes the contents of the file in accordance with [MS-FSSHTTP].
Original file line number Diff line number Diff line change @@ -108,5 +108,6 @@ private bool ValidateAuthorizationHeader(StringValues authorizationHeader)
108
108
{
109
109
//TODO: implement header validation https://learn.microsoft.com/en-us/microsoft-365/cloud-storage-partner-program/rest/bootstrapper/getrootcontainer#sample-response
110
110
// http://stackoverflow.com/questions/31948426/oauth-bearer-token-authentication-is-not-passing-signature-validation
111
- true ;
111
+ return true ;
112
+ }
112
113
}
You can’t perform that action at this time.
0 commit comments