refactor: update HTTP request handling and improve documentation
- Replaced http.NewRequest with http.NewRequestWithContext in client tests for better context management. - Updated method names and comments for clarity, including renaming GetWsdlUrl to GetWsdlURL and StorageUri to StorageURI for consistency. - Enhanced comments across various files to provide clearer descriptions of functionality and ONVIF specifications.
This commit is contained in:
@@ -35,7 +35,7 @@ type CameraCapture struct {
|
||||
|
||||
// LoadCaptureFromArchive loads all captured exchanges from a tar.gz archive.
|
||||
func LoadCaptureFromArchive(archivePath string) (*CameraCapture, error) {
|
||||
file, err := os.Open(archivePath)
|
||||
file, err := os.Open(archivePath) //nolint:gosec // File path is from test data, safe
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to open archive: %w", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user