소스 검색

Merge pull request #1305 from bugfixin/passwordless-form-encoded

Fix passwordless authentication with non-json content-types
Joshua M. Boniface 6 년 전
부모
커밋
4e0be95368
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Emby.Server.Implementations/Services/StringMapTypeDeserializer.cs

+ 1 - 1
Emby.Server.Implementations/Services/StringMapTypeDeserializer.cs

@@ -71,7 +71,7 @@ namespace Emby.Server.Implementations.Services
                 string propertyName = pair.Key;
                 string propertyTextValue = pair.Value;
 
-                if (string.IsNullOrEmpty(propertyTextValue)
+                if (propertyTextValue == null
                     || !propertySetterMap.TryGetValue(propertyName, out propertySerializerEntry)
                     || propertySerializerEntry.PropertySetFn == null)
                 {