Skip to content

Commit

Permalink
No value OAuth1 still need "=" to be valid
Browse files Browse the repository at this point in the history
  • Loading branch information
ili101 committed Apr 23, 2023
1 parent 71c73f8 commit 1fe525a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/RestSharp/Authenticators/OAuth/WebPair.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// limitations under the License.

namespace RestSharp.Authenticators.OAuth;

Expand All @@ -27,7 +27,7 @@ class WebPair {

public string GetQueryParameter(bool web) {
var value = web ? $"\"{WebValue}\"" : Value;
return value == null ? Name : $"{Name}={value}";
return $"{Name}={value}";
}

internal static WebPairComparer Comparer { get; } = new();
Expand Down

0 comments on commit 1fe525a

Please sign in to comment.