Skip to content

Commit

Permalink
fix mising '\r' in device service POST
Browse files Browse the repository at this point in the history
  • Loading branch information
sr99622 committed Oct 8, 2024
1 parent dc16d9e commit 59effcc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion onvif-gui/gui/panels/camerapanel.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def btnDiscoverClicked(self):
data.getData = self.getData
data.getCredential = self.getCredential
data.setXAddrs(xaddrs)
data.setDeviceService("POST /onvif/device_service HTTP/1.1\n")
data.setDeviceService("POST /onvif/device_service HTTP/1.1\r\n")
data.alias = alias
self.fillers.append(data)
data.startManualFill()
Expand Down
2 changes: 1 addition & 1 deletion onvif-gui/gui/panels/options/discover.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def btnAddCameraClicked(self):
data.getData = self.mw.cameraPanel.getData
data.getCredential = self.mw.cameraPanel.getCredential
data.setXAddrs(xaddrs)
data.setDeviceService("POST /onvif/device_service HTTP/1.1\n")
data.setDeviceService("POST /onvif/device_service HTTP/1.1\r\n")
data.manual_fill()

def autoDiscoverChecked(self, state):
Expand Down

0 comments on commit 59effcc

Please sign in to comment.